/*
 * @Author: thl t15945324431@163.com
 * @Date: 2024-05-01 17:45:04
 * @LastEditors: thl t15945324431@163.com
 * @LastEditTime: 2024-05-07 16:27:47
 * @FilePath: \cw_web\gl\src\request\wallet\rechargeWithdraw.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import React from 'react'

//红包-转账-充值-提现配置列表数据
export async function rechargeWithdrawList(params) {
  return await React.$post('/manage/api/b/imAmountConfig/getOne', params);
}
export async function rechargeWithdrawEdit(params) {
  return await React.$postJson('/manage/api/b/imAmountConfig/update', params);
}
export async function apiPetCoinRechargeConfig(params) {
  return await React.$post('/manage/api/petCoinRechargeConfig/getOne', params);
}
export async function apiPetCoinRechargeConfigEdit(params) {
  return await React.$postJson('/manage/api/c/petCoinRechargeConfig/edit', params);
}
export async function apiRiskConfigList(params) {
  return await React.$postJson('/manage/api/b/riskConfig/list', params);
}
export async function apiRiskConfigAddOrUpdate(params) {
  return await React.$postJson('/manage/api/b/riskConfig/addOrUpdate', params);
}
// 获取im资金管理相关配置
export async function apiGetDetailByType(params) {
  return await React.$get('/manage/api/b/capitalConfig/getDetailByType', params);
}
// 修改im资金管理相关配置
export async function apiUpdateCapitalConfig(params) {
  return await React.$postJson('/manage/api/b/capitalConfig/updateCapitalConfig', params);
}
